USE [{0}]

SELECT 
	IT.TABLE_SCHEMA AS BASE_TABLE_SCHEMA,
	IT.TABLE_CATALOG AS BASE_TABLE_CATALOG,
	ICU.COLUMN_NAME AS BASE_COLUMN_NAME,
	CK.[name] AS CK_NAME,
	CK.[definition] AS CK_DEFINITION
FROM INFORMATION_SCHEMA.TABLES IT
	INNER JOIN sys.objects O
	ON O.[name] = IT.[TABLE_NAME] AND O.[type] = 'U'
	INNER JOIN sys.check_constraints CK
	ON CK.parent_object_id = O.object_id
	INNER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ICU
	ON CK.[name] = ICU.[CONSTRAINT_NAME]
WHERE IT.TABLE_TYPE = 'BASE TABLE' 
	AND IT.TABLE_CATALOG='{0}'
	AND IT.TABLE_NAME = '{1}'
